package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.ReferenceDao;
import com.suke.czx.modules.examstack.exam.entity.ReferenceEntity;
import com.suke.czx.modules.examstack.exam.service.ReferenceService;



@Service("referenceService")
public class ReferenceServiceImpl implements ReferenceService {
	@Autowired
	private ReferenceDao referenceDao;
	
	@Override
	public ReferenceEntity queryObject(Integer referenceId){
		return referenceDao.queryObject(referenceId);
	}
	
	@Override
	public List<ReferenceEntity> queryList(Map<String, Object> map){
		return referenceDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return referenceDao.queryTotal(map);
	}
	
	@Override
	public void save(ReferenceEntity reference){
		referenceDao.save(reference);
	}
	
	@Override
	public void update(ReferenceEntity reference){
		referenceDao.update(reference);
	}
	
	@Override
	public void delete(Integer referenceId){
		referenceDao.delete(referenceId);
	}
	
	@Override
	public void deleteBatch(Integer[] referenceIds){
		referenceDao.deleteBatch(referenceIds);
	}
	
}
